package cn.silver.module.system.controller;

import cn.silver.framework.mybatis.controller.BaseController;
import cn.silver.module.system.bean.AvatarBean;
import cn.silver.module.system.domain.SysUserAvatar;
import cn.silver.module.system.param.AvatarParam;
import cn.silver.module.system.service.ISysUserAvatarService;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhouxiaobo
 */
@Validated
@RestController
@RequiredArgsConstructor
@Tag(name = "系统管理-用户管理-用户头像管理")
@RequestMapping("/system/user/avatar")
public class SysUserAvatarController extends BaseController<ISysUserAvatarService, SysUserAvatar, AvatarParam, AvatarBean> {
    @Override
    @Resource
    public void setBaseService(ISysUserAvatarService baseService) {
        this.baseService = baseService;
        this.setCode("system_user_avatar");
        this.setTitle("系统管理-用户管理-用户头像管理");
        this.setPermission("system:user");
    }
}
